//
//  JLWebViewController.swift
//  JLOnline
//
//  Created by zhangshumeng on 2020/4/2.
//  Copyright © 2020 zhangshumeng. All rights reserved.
//

import UIKit

class JLWebViewController: BaseViewController {
    
    private lazy var webContainer: WebViewContainer = {
        WebViewContainer()
    }()
    
    override func viewDidLoad() {
        super.viewDidLoad()

        addSubviews()
    }

    private func addSubviews() {
        disablesAdjustScrollViewInsets(webContainer.webView.scrollView)
        view.addSubview(webContainer)
        webContainer.snp.makeConstraints { make in
            make.top.equalTo(topLayoutGuideBottom)
            make.left.bottom.right.equalToSuperview()
        }
    }

    func load(urlString: String) {
        webContainer.load(urlString: urlString)
    }
}
